home *** CD-ROM | disk | FTP | other *** search
- import java.io.IOException;
- import java.util.Timer;
- import javax.microedition.lcdui.Canvas;
- import javax.microedition.lcdui.Display;
- import javax.microedition.lcdui.Graphics;
- import javax.microedition.lcdui.Image;
- import javax.microedition.lcdui.Screen;
-
- // $FF: renamed from: c
- public class class_0 extends Canvas {
- // $FF: renamed from: a javax.microedition.lcdui.Display
- public Display field_0;
- // $FF: renamed from: m javax.microedition.lcdui.Screen
- public Screen field_1;
- // $FF: renamed from: l javax.microedition.lcdui.Image
- public Image field_2;
- // $FF: renamed from: k javax.microedition.lcdui.Image
- public Image field_3;
- // $FF: renamed from: j javax.microedition.lcdui.Image
- public Image field_4;
- // $FF: renamed from: i javax.microedition.lcdui.Image
- public Image field_5;
- // $FF: renamed from: h java.util.Timer
- public Timer field_6;
- // $FF: renamed from: g int
- public volatile int field_7;
- // $FF: renamed from: e boolean
- public volatile boolean field_8 = false;
-
- public class_0(Display var1, Screen var2) throws IOException {
- this.field_0 = var1;
- this.field_1 = var2;
- this.field_5 = Image.createImage(((Canvas)this).getWidth(), ((Canvas)this).getHeight());
- this.field_2 = a.b(0, 0, 101, 40, "/intro.png");
- this.field_3 = a.b(0, 40, 101, 40, "/intro.png");
- this.field_4 = Image.createImage("/logodisplay.png");
- }
-
- // $FF: renamed from: e () void
- public final void method_0() {
- b var1 = new b(this);
- this.field_6 = new Timer();
- this.field_7 = 0;
- this.field_6.schedule(var1, 1000L, 30L);
- }
-
- // $FF: renamed from: d () void
- public final void method_1() {
- this.field_8 = true;
- ((Canvas)this).repaint();
- ((Canvas)this).serviceRepaints();
- synchronized(this) {
- while(this.field_8) {
- try {
- this.wait();
- } catch (InterruptedException var4) {
- }
- }
-
- }
- }
-
- public final void paint(Graphics var1) {
- Graphics var2 = this.field_5.getGraphics();
- this.method_2(var2);
- var1.drawImage(this.field_5, 0, 0, 20);
- synchronized(this) {
- this.field_8 = false;
- this.notifyAll();
- }
- }
-
- // $FF: renamed from: c (javax.microedition.lcdui.Graphics) void
- private final void method_2(Graphics var1) {
- if (this.field_7 == 0) {
- var1.drawImage(this.field_4, 0, 0, 20);
- } else {
- var1.drawImage(this.field_2, 0, -40 + this.field_7, 20);
- var1.drawImage(this.field_3, 0, 80 - this.field_7, 20);
- }
-
- }
- }
-